home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1998 May
/
Macworld (1998-05).dmg
/
Updaters
/
SoftWindows 95 5.0.2
/
SoftWindows Upgrade Disk
/
SoftWindows Upgrade Disk
/
UNIX.BAT
< prev
next >
Wrap
DOS Batch File
|
1998-02-17
|
4KB
|
115 lines
rem [
rem Name: u.unix.bat
rem
rem Derived from: mac.bat
rem
rem Author: Clive Standbridge
rem
rem Created on: Oct 1996
rem
rem Sccs ID: @(#)u.unix.bat 1.12 06/20/97
rem
rem Coding Stds:
rem
rem Purpose: Batch file for updating Unix-specific parts of
rem SoftWindows and SoftPC Turbo.
rem
rem Parameters: 1 Windows version; must be "win31" or "win95".
rem (win31 includes WfW 3.11).
rem 2 Windows system directory.
rem 3 two-letter language ID
rem 4 Host System name
rem 5 Host System release
rem 6 Host System version
rem 7 Host System hardware type
rem
rem Copyright 1997 Insignia Solutions PLC. All rights reserved.
rem ]
goto %1
rem should never get here!
goto end
:win31
rem Check for SoftWindows 2.0 self-modifying autoexec.bat file
rem We will find this if the user creates a new disk from a
rem Swin 2 disk data file. We need to convert the SWIN2HOME
rem to SWINHOME. NB this file is the same for US, French and German.
filecomp c:\autoexec.bat d:\unixonly\sw2auto.unx >>c:\insignia\up.log
if errorlevel 1 goto not_sw2
echo Converting autoexec.bat from SoftWindows 2.0 version >>c:\insignia\up.log
move c:\autoexec.bat c:\autoexec.tmp >>c:\insignia\up.log
keybconf d:\unixonly\swinhome.def c:\autoexec.tmp c:\autoexec.bat >>c:\insignia\up.log
del c:\autoexec.tmp >>c:\insignia\up.log
:not_sw2
rem Set up the selected keyboard in the upgrade script, then run it.
keybconf c:\insignia\keyboard.def d:\unixonly\unix311.ugd c:\insignia\unix311.ugd >>c:\insignia\up.log
win31lic /v /s%2 c:\insignia\unix311.ugd >>c:\insignia\up.log
goto end
:win95
REM What I really want to do is to modify win95lic to take multiple .ugd files.
REM We could generate runonce.reg to invoke w95once.bat with a host parameter.
REM For the time being we append to the hard-coded file name.
type c:\insignia\unix95.ugd >> c:\insignia\win95.ugd
rem If we have a non-US keyboard selected, set up the keyboard selection from
rem a template UGD file and the selected keyboard.def file.
set w95_locale_no=xxxxxxxxxxxxxxxxxxxx
find "W95_LOCALE_NO=" < c:\insignia\keyboard.def | ibatch w95_locale_no string 14 0
if "%w95_locale_no%" == "" goto no_intl_kbd
keybconf c:\insignia\keyboard.def d:\unixonly\u95kbd.ugd c:\insignia\u95kbd.tmp >>c:\insignia\up.log
type c:\insignia\u95kbd.tmp >> c:\insignia\win95.ugd
rem If we also have one of the host-specific keyboard layouts selected,
rem set up the keyboard layout from a template UGD file and the selected
rem keyboard.def file.
set w95_sublocale=xxxxxxxxxxxxxxxxxxxx
find "W95_SUBLOCALE=" < c:\insignia\keyboard.def | ibatch w95_sublocale string 14 0
if "%w95_sublocale%" == "" goto no_intl_kbd
keybconf c:\insignia\keyboard.def d:\unixonly\u95kbd_2.ugd c:\insignia\u95kbd_2.tmp >>c:\insignia\up.log
type c:\insignia\u95kbd_2.tmp >> c:\insignia\win95.ugd
:no_intl_kbd
set w95_locale_no=
set w95_sublocale=
rem Need to check to see if we are doing a SGI Japanese Win95 upgrade. If so
rem we need to setup the user selected keyboard type
set w95j_new106keyboard=xxxxxxxxxxxxxxxxxxxx
find "NEW106KEYBOARD=" < c:\insignia\keyboard.def | ibatch w95j_new106keyboard string 15 0
if "%w95j_new106keyboard%" == "" goto no_j_kbd
keybconf c:\insignia\keyboard.def d:\unixonly\u95kbdj.ugd c:\insignia\u95kbdj.tmp >>c:\insignia\up.log
type c:\insignia\u95kbdj.tmp >> c:\insignia\win95.ugd
:no_j_kbd
set w95j_new106keyboard=
rem ===================
rem Miscellaneous stuff
rem ===================
rem SGI bits. From IRIX 6.4 "uname -s" irritatingly returns the version
rem appended to the OS name.
set os_name=xxxx
ibatch os_name string %4 0 4
if not "%os_name%" == "IRIX" goto no_IRIX
rem SGI AVI driver and associated bits
copy d:\unixonly\misc\avioff.bat c:\insignia >>c:\insignia\up.log
copy d:\unixonly\misc\avion.bat c:\insignia >>c:\insignia\up.log
copy d:\unixonly\misc\mciavi.drv c:\insignia >>c:\insignia\up.log
rem Save original AVI driver for avion/avioff batch files.
if not exist c:\insignia\mciavi.org copy c:\windows\system\mciavi.drv c:\insignia\mciavi.org >>c:\insignia\up.log
rem SGI Japanese support information.
if "%3" == "jp" copy d:\unixonly\misc\oeminfo.nsg c:\windows\system\oeminfo.ini >>c:\insignia\up.log
:no_IRIX
set os_name=
goto end
:end